<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">车源分类:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[type]', ['0'=>'二手车', '1'=>'新车'], $row['type'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">归属人:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index"  class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">城市:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-city" class="form-control" data-toggle="city-picker" name="row[city]" type="text" value="{$row.city|htmlentities}" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vin')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-VIN" class="form-control" name="row[VIN]" type="text" value="{$row.VIN|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">国别:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-guobie" class="form-control" name="row[guobie]" type="text" value="{$row.guobie|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->


<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Car_brand_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-car_brand_id" data-rule="required" data-source="ajax/brand_list" class="form-control selectpage" name="row[car_brand_id]" type="text" value="{$row.car_brand_id|htmlentities}">-->
<!--            <input id="c-car_brand_name" class="form-control" name="row[car_brand_name]" type="hidden" value="{$row.car_brand_name|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">品牌:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-car_brand_name" class="form-control" name="row[car_brand_name]" type="text" value="{$row.car_brand_name|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_brand_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_brand_name" class="form-control" name="row[car_brand_name]" type="text" value="{$row.car_brand_name|htmlentities}">
        </div>
    </div>


<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">车系:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-car_series_name" class="form-control" name="row[car_series_name]" type="text" value="{$row.car_series_name|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_series_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_series_name" class="form-control" name="row[car_series_name]" type="text" value="{$row.car_series_name|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">车型:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-car_models_name" class="form-control" name="row[car_models_name]" type="text" value="{$row.car_models_name|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_models_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_models_name" class="form-control" name="row[car_models_name]" type="text" value="{$row.car_models_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-car_image" class="form-control" size="50" name="row[car_image]" type="text" value="{$row.car_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button data-multiple="true" type="button" id="faupload-car_image" class="btn btn-danger faupload" data-input-id="c-car_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-car_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button data-multiple="true" type="button" id="fachoose-car_image" class="btn btn-primary fachoose" data-input-id="c-car_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-car_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-car_image"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_video')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-car_video" class="form-control" size="50" name="row[car_video]" value="{$row.car_video|htmlentities}" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button data-multiple="true" type="button" id="faupload-car_video" class="btn btn-danger faupload" data-input-id="c-car_video" data-multiple="false" data-preview-id="p-car_video"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button data-multiple="true" type="button" id="fachoose-car_video" class="btn btn-primary fachoose" data-input-id="c-car_video" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-car_video"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-car_video"></ul>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Registration_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-registration_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[registration_time]" type="text" value="{$row.registration_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Factory_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-factory_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[factory_date]" type="text" value="{$row.factory_date}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cc" class="form-control" step="0.1" name="row[cc]" type="number" value="{$row.cc|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cc_unit')}:</label>
        <div class="col-xs-12 col-sm-8">

            {:build_radios('row[cc_unit]', ['L'=>'L', 'T'=>'T'], $row['cc_unit'])}
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">定金:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-deposit" class="form-control" step="0.01" name="row[deposit]" type="number" value="{$row.deposit|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">下调价格:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-cut_price" class="form-control" step="0.01" name="row[cut_price]" type="number" value="{$row.cut_price|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Base_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-base_price" class="form-control" step="0.01" name="row[base_price]" type="number" value="{$row.base_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">开票金额:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-invoice_amount" class="form-control" step="0.01" name="row[invoice_amount]" type="number" value="{$row.invoice_amount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">退税金额:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-refund_amount" class="form-control" step="0.01" name="row[refund_amount]" type="number" value="{$row.refund_amount|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('New_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-new_price" class="form-control" step="0.01" name="row[new_price]" type="number" value="{$row.new_price|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Is_price')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            {:build_radios('row[is_price]', ['0'=>'否', '1'=>'是'], $row['is_price'])}-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Transfer_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-transfer_num" class="form-control" name="row[transfer_num]" type="number" value="{$row.transfer_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Odometer_km')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-odometer_km" class="form-control" step="0.1" name="row[odometer_km]" type="number" value="{$row.odometer_km|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Year_inspect_date')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-year_inspect_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[year_inspect_date]" type="text" value="{$row.year_inspect_date}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Compulsory_insurance_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-compulsory_insurance_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[compulsory_insurance_date]" type="text" value="{$row.compulsory_insurance_date}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Mortgage')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            {:build_radios('row[mortgage]', ['0'=>'无抵押', '1'=>'有抵押'], $row['is_price'])}-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Use_character')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[use_character]', ['0'=>'非营运', '1'=>'网约车退役'], $row['use_character'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_describe')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[car_describe]" class="form-control" cols="30" rows="5">{$row.car_describe|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Label_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-label_ids" data-rule="required" data-source="car/label/index" data-multiple="true" class="form-control selectpage" name="row[label_ids]" type="text" value="{$row.label_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sparkle_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sparkle_ids" data-rule="required" data-source="car/sparkle/index" data-multiple="true" class="form-control selectpage" name="row[sparkle_ids]" type="text" value="{$row.sparkle_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Key_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-key_num" class="form-control" name="row[key_num]" type="number" value="{$row.key_num|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_colour')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_colour" class="form-control" name="row[car_colour]" type="text" value="{$row.car_colour|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">内饰颜色:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-interior_colour" class="form-control" name="row[interior_colour]" type="text" value="{$row.interior_colour|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Prove_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-prove_image" class="form-control" size="50" name="row[prove_image]" type="text" value="{$row.prove_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button data-multiple="true" type="button" id="faupload-prove_image" class="btn btn-danger faupload" data-input-id="c-prove_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-prove_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button data-multiple="true" type="button" id="fachoose-prove_image" class="btn btn-primary fachoose" data-input-id="c-prove_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-prove_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-prove_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Test_report_file')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-test_report_file" class="form-control" size="50" name="row[test_report_file]" type="text" value="{$row.test_report_file|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button data-multiple="true" type="button" id="faupload-test_report_file" class="btn btn-danger faupload" data-input-id="c-test_report_file" data-multiple="false" data-preview-id="p-test_report_file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button data-multiple="true" type="button" id="fachoose-test_report_file" class="btn btn-primary fachoose" data-input-id="c-test_report_file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-test_report_file"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-test_report_file"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ssss_report_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-ssss_report_image" class="form-control" size="50" name="row[ssss_report_image]" type="text" value="{$row.ssss_report_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button data-multiple="true" type="button" id="faupload-ssss_report_image" class="btn btn-danger faupload" data-input-id="c-ssss_report_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-ssss_report_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button data-multiple="true" type="button" id="fachoose-ssss_report_image" class="btn btn-primary fachoose" data-input-id="c-ssss_report_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-ssss_report_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-ssss_report_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Danger_report_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-danger_report_image" class="form-control" size="50" name="row[danger_report_image]" type="text" value="{$row.danger_report_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button data-multiple="true" type="button" id="faupload-danger_report_image" class="btn btn-danger faupload" data-input-id="c-danger_report_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-danger_report_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button data-multiple="true" type="button" id="fachoose-danger_report_image" class="btn btn-primary fachoose" data-input-id="c-danger_report_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-danger_report_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-danger_report_image"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gearbox')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-gearbox" class="form-control" name="row[gearbox]" type="text" value="{$row.gearbox|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">能源类型:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-energy_type" class="form-control" name="row[energy_type]" type="text" value="{$row.energy_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">车辆级别:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_level" class="form-control" name="row[car_level]" type="text" value="{$row.car_level|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">排放标准:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-FES" class="form-control" name="row[FES]" type="text" value="{$row.FES|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">车身结构:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-drive_type" class="form-control" name="row[drive_type]" type="text" value="{$row.drive_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">车身结构:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-struct" class="form-control" name="row[struct]" type="text" value="{$row.struct|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Load_people_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-load_people_num" class="form-control" name="row[load_people_num]" type="number" value="{$row.load_people_num|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">车源类型:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['0'=>'现货', '1'=>'期货'], $row['status'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">交易状态:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>'在售', '2'=>'交易中', '3'=>'已售'], $row['status'])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['0'=>'下架', '1'=>'上架'], $row['status'])}
        </div>
    </div>

<!--    <div class="form-group layer-footer">-->
<!--        <label class="control-label col-xs-12 col-sm-2"></label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>-->
<!--        </div>-->
<!--    </div>-->
</form>
<style>

    .layui-layer {
        z-index: 999999;
    }
</style>